import sun.plugin.dom.css.Counter;

/**
 * Created by IntelliJ IDEA.
 * User: Danny Beaumont
 * Date: 6/8/11
 * Time: 11:19 PM
 * To change this template use File | Settings | File Templates.
 */
public class Factors
{
 public static void getFactors(int number,int count)
         //post condition:
         //precondition: must be a whole number and < 1
 {
     if(count < 2)System.out.println("count must be greater than 1");
     if(number%count == 0 && number != 1)
     {
         System.out.println(count);
         getFactors(number/count,2);//2 being the lowest possible factor
     }
     else if(number%count != 0 && number != 1)
     {
         getFactors(number,count+1);
     }
 }
    public static void main(String[] args)
    {
             getFactors(1563,2);
    }
}
